package com.example.hello.dto;

import lombok.Data;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import java.util.Date;

@Data
public class UserDTO {
  private Long userId;

  @NotBlank(message = "用户名不能为空")
  @Size(min = 4, max = 20, message = "用户名长度必须在4-20之间")
  private String username;

  @Email(message = "邮箱格式不正确")
  private String email;

  @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
  private String phone;

  private String avatar;
  private Integer gender;
  private String nickname;
  private Date birthday;
  private String location;
  
  @Size(max = 500, message = "个人简介不能超过500个字符")
  private String bio;
  
  // 添加角色字段
  private String role;
  
  // 添加状态字段
  private Integer status;
}